filter_var($email, FILTER_VALIDATE_EMAIL));
Entrada | FILTER_VALIDATE_EMAIL |
“fulano@site.com.br” | string(18) “fulano@site.com.br” |
5 | bool(false) |
“site.com.br” | bool(false) |
“1@2.3” | bool(false) |
“1@2” | bool(false) |
‘”fulano beltrano”@site.com’ | bool(false) |